/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.brain.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户排位数据Entity
 * @author 程展峰
 * @version 2021-09-18
 */

//to do 自动获取租户ID 季度ID userId
public class BUserRankData extends DataEntity<BUserRankData> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// user_id
	private String userName;		// user_name
	private Long rankStar;		// 排位星数
	private String tenantId;		// tenant_id
	private String quarterId;		// 季度ID



	public BUserRankData() {
		super();
	}

	public BUserRankData(String id){
		super(id);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=255, message="user_name长度必须介于 0 和 255 之间")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@NotNull(message="排位星数不能为空")
	public Long getRankStar() {
		return rankStar;
	}

	public void setRankStar(Long rankStar) {
		this.rankStar = rankStar;
	}
	
	@Length(min=0, max=64, message="tenant_id长度必须介于 0 和 64 之间")
	public String getTenantId() {
		return tenantId;
	}

	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}
	
	@Length(min=0, max=64, message="季度ID长度必须介于 0 和 64 之间")
	public String getQuarterId() {
		return quarterId;
	}

	public void setQuarterId(String quarterId) {
		this.quarterId = quarterId;
	}
	
}